package com.pw.lit.service.impl;

import com.pw.lit.bean.Labels;
import com.pw.lit.bean.LabelsExample;
import com.pw.lit.mapper.LabelsMapper;
import com.pw.lit.service.LabelsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("labelsService")
public class LabelsServiceImpl implements LabelsService {
    @Autowired
    private LabelsMapper labelsMapper;

    @Override
    public int countByExample(LabelsExample example) {
        return labelsMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(LabelsExample example) {
        return labelsMapper.deleteByExample(example);
    }

    @Override
    public int insert(Labels record) {
        return labelsMapper.insert(record);
    }

    @Override
    public int insertSelective(Labels record) {
        return labelsMapper.insertSelective(record);
    }

    @Override
    public List<Labels> selectByExample(LabelsExample example) {
        return labelsMapper.selectByExample(example);
    }

    @Override
    public int updateByExampleSelective(Labels record, LabelsExample example) {
        return labelsMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(Labels record, LabelsExample example) {
        return labelsMapper.updateByExample(record,example);
    }
}